/*
 * Copyright 2016-2019 yoara
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package yhao.infra.feature.payment.core.wxpay.model.refund;


import yhao.infra.feature.payment.core.wxpay.model.WxBasePostModel;

/**
 * 微信支付退款操作对象
 *
 * @author yoara
 */
public class WxRefundModel extends WxBasePostModel {
    //商户订单号,商户系统内部的订单号,32个字符内、可包含字母
    private String out_trade_no;
    //退款单号
    private String out_refund_no;
    //订单总金额(分),只能为整数，详见支付金额
    private int total_fee;
    //退款总金额，订单总金额，单位为分，只能为整数
    private int refund_fee;
    //货币类型
    private String refund_fee_type = "CNY";

    public WxRefundModel(String out_trade_no,
                         String out_refund_no, int total_fee, int refund_fee) {
        this.out_trade_no = out_trade_no;
        this.out_refund_no = out_refund_no;
        this.total_fee = total_fee;
        this.refund_fee = refund_fee;
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public void setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
    }

    public String getOut_refund_no() {
        return out_refund_no;
    }

    public void setOut_refund_no(String out_refund_no) {
        this.out_refund_no = out_refund_no;
    }

    public int getTotal_fee() {
        return total_fee;
    }

    public void setTotal_fee(int total_fee) {
        this.total_fee = total_fee;
    }

    public int getRefund_fee() {
        return refund_fee;
    }

    public void setRefund_fee(int refund_fee) {
        this.refund_fee = refund_fee;
    }

    public String getRefund_fee_type() {
        return refund_fee_type;
    }

    public void setRefund_fee_type(String refund_fee_type) {
        this.refund_fee_type = refund_fee_type;
    }
}
